package com.settlement.system.rules;

import com.settlement.system.model.entity.SysAudit;
import com.settlement.system.model.entity.SysAuditRule;

import java.math.BigDecimal;

/**
 * 15、已完结
 */
public class HasEndRuler implements CommonRuler {
    @Override
    public boolean check(SysAudit sysAudit, SysAuditRule auditRule) {
        // 应收账款余额=0
        return BigDecimal.ZERO.compareTo(sysAudit.getReceiveBillAmount()) == 0;
    }
}
